/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-06-13
 * Time: 14:51
 */
class A{
    double f(double x,double y){
        return x+y;
    }
    static int g(int n){
        return n*n;
    }
}

interface Take{
    //protected void speak();
}

class B extends A{
    double f(double x,double y){
        double m = super.f(x,y);
        return m+x*y;
    }
    static int g(int n){
        //return n*n;
        int m =A.g(n);
        return m+n;
    }
}
public class C {
    public static void main(String[] args) {
        A a = new B();
        System.out.println(a.f(10.0,8.0));
        System.out.println(a.g(3));
    }
}
